package net.cloudcodex.client.home.view.panel.character;

import java.util.ArrayList;
import java.util.List;

import net.cloudcodex.client.home.view.HomeCharacterView;
import net.cloudcodex.client.home.view.HomeView.Message;

import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Label;

public class HomeCharactersPanel extends FlowPanel {

	private final Label titlePanel = new Label();

	private Message message;

	public HomeCharactersPanel() {
		this.add(titlePanel);
	}

	public void initComponents() {
		titlePanel.setText(message.getCharactersTitle());
		titlePanel.setStyleName("titlePanel");
		this.addStyleName("homeCharactersPanel");
	}

	public void setMessage(Message message) {
		this.message = message;
	}

	public void addView(HomeCharacterView characterView) {
		this.add(characterView);
	}

}
